--[[    slimui - Copyright (c) 2011 atom0s, All rights reserved.    See Copyright notice in slimui.lua    ]]--class 'PopupMenu: Menu' { ... };----------------------------------------------------------------------------------
-- func: PopupMenu.__init__
-- desc: Constructor called when this object is first created.
----------------------------------------------------------------------------------function PopupMenu.__init__( self )    Menu.__init__( self );end----------------------------------------------------------------------------------
-- func: PopupMenu:Create
-- desc: Creates a new popupmenu object.
----------------------------------------------------------------------------------function PopupMenu:Create( parent )    if parent == nil or parent._object == nil then
        slimui:err( 'PopupMenu:Create - parent must be set to create a control!' );
    end
    
    self._object = createPopupMenu( parent._object );
    
    if self._object == nil then
        slimui:err( 'PopupMenu:Create - failed to initialize a new object.' );
    end
    
    return self;end



--[[ Debug information. ]]--------------------------------------------------------
if ( slimui:isdebug() == true ) then
    slimui:msg( '(Control) popupmenu.lua successfully loaded.' );
end